home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ddj0897.zip / DYN401.ZIP / makefile.inc < prev    next >
Makefile  |  1997-04-16  |  469b  |  45 lines

  1.  
  2. .SUFFIXES: .d .iv
  3.  
  4. .PRECIOUS : %.c %.iv
  5.  
  6. BINDIR = ../bin
  7. LIBDIR = ../lib
  8. INCDIR = ../include
  9.  
  10. CC = gcc
  11. DPP = $(BINDIR)/dpp
  12. DPPOPTS = -C
  13.  
  14. ifdef    DEBUG
  15. OPT = -g
  16. else
  17. OPT = -O
  18. endif
  19.  
  20. CFLAGS = -I$(INCDIR) $(OPT) -Wall -Wno-parentheses
  21.  
  22. ifdef CPLUS
  23. CFLAGS += -x c++
  24. endif
  25.  
  26. ifdef FASTWIDE
  27. DPPOPTS += -F
  28. endif
  29.  
  30. ifdef INLINE
  31. DPPOPTS += -S4
  32. endif
  33.  
  34. ifdef OVERLOADS
  35. DPPOPTS += -X
  36. endif
  37.  
  38. DPPOPTS += $(STRAT)
  39.  
  40. GFLAGS = $(CFLAGS) -Wno-return-type
  41.  
  42. %.c: %.d
  43.     $(DPP) $(DPPOPTS) -p $<
  44.  
  45.